Skip to content

Fix #1516#977

Merged
ineagu merged 2 commits into
Codeinwp:fix/1516from
ineagu:fix-defaultqvalue
Oct 1, 2025
Merged

Fix #1516#977
ineagu merged 2 commits into
Codeinwp:fix/1516from
ineagu:fix-defaultqvalue

Conversation

@ineagu

@ineagu ineagu commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

Refactored the Compression.js component to better handle toggling between auto and manual quality settings while fixing https://github.com/Codeinwp/optimole-service/issues/1516#issuecomment-3355204589. Updated the minimum allowed quality value in settings.php from 1 to 50 to stay consistent with the front-end.

Changed default compression setting to 80, which is more likely to be used vs 90, which is not recommended.

All Submissions:

Have you followed the Optimole Contributing guideline?
Does your code follow the WordPress' coding standards?
Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Changes proposed in this Pull Request:

Refactored the Compression.js component to better handle toggling between auto and manual quality settings while fixing https://github.com/Codeinwp/optimole-service/issues/1516#issuecomment-3355204589. Updated the minimum allowed quality value in settings.php from 1 to 50 to stay consistent with the front-end.

Changed default compression setting to 80, which is more likely to be used vs 90, which is not recommended.

Closes https://github.com/Codeinwp/optimole-service/issues/1516 .

How to test the changes in this Pull Request:

Disable machine learning compression & save
Ensure the default value is used on the frontend.
Make sure going back to mauto or migrating from an older version works as expected.
Other information:

[x ] Have you added an explanation of what your changes do and why you'd like us to include them?
Have you written new tests for your changes, as applicable?
[ x] Have you successfully ran tests with your changes locally?

ineagu added 2 commits October 1, 2025 13:50
Refactored the Compression.js component to better handle toggling between auto and manual quality settings, preserving the user's manual quality value when switching modes. Updated the minimum allowed quality value in settings.php from 1 to 50 for better image quality control.
@ineagu ineagu merged commit c2e948a into Codeinwp:fix/1516 Oct 1, 2025
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant